import request from '@/utils/request';
/**
 * 报警消息查询接口
 * userId=1&page=1&size=10
 */
export const remoteNotifyList = params => {
    return request.get(`/sys/notifyLog/query`, params);
};

/**
 * 运维问题接口
 * page=1&size=10
 */
export const remoteOperationQuestionList = params => {
    return request.get(`/device/question/query`, params);
};

/**
 * 设备总数
 */
export const remoteDeviceAllCount = params => {
    return request.get(`/device/liquidJar/qryDeviceCnt`, params);
};
/**
 * 在线设备数量
 */
export const remoteDeviceOnCount = params => {
    return request.get(`/device/liquidJar/qryActiveDeviceCnt`, params);
};
/**
 * 报警储液罐数量
 */
 export const remoteDeviceAlarmCount = params => {
    return request.get(`/device/liquidJar/qryAlarmCnt`, params);
};
/**
 * 待加液储液罐数量
 */
 export const remoteDeviceLowCount = params => {
    return request.get(`/device/liquidJar/qryLowCnt`, params);
};
/**
 * 日平均消耗
 */
 export const remoteDeviceDayCount = params => {
    return request.get(`/device/dayUse/qryDashboardDay`, params);
};
/**
 * 大屏厂区经纬度查询
 * ?page=1&size=200
 */
 export const remoteFactoryLocation = params => {
    return request.get(`/sys/factory/query`, params);
};

/**
 * 大屏主页周消耗，多个储液罐返回
 * a.data里是数组，多个储液罐
 * b.每个储液罐的dayUseList也是个数组，展示7天来的数据，前端取calDate(日期)和usedAmountVol(使用量)作展示
 */
export const remoteWeekJarList = params=>{
    return request.get(`/device/dayUse/qryDashboardWeekWithJar`, params);
}


/**
 * 大屏问题类型饼图数据
 */
export const remoteQuestionStatistics = params=>{
    return request.get(`/device/question/queryTypeNum`, params);
}

/**
 * 大屏主页面柱状图报警类型数据返回
 */
export const remoteAlarmStatistics = params=>{
    return request.get(`/sys/notifyLog/queryTypeNum`, params);
}